const MainRoutes = [
    {
        path: '/home',
        alias: '/',
        name: 'Home',
        component: () => import('../views/Home.vue')
    },
    {
        path: '/menu',
        name: 'Menu',
        component: () => import('../views/Menu.vue')
    },
    {
        path: '/shopcar',
        name: 'ShopCar',
        component: () => import('../views/ShopCar.vue')
    },
    {
        path: '/personal',
        name: 'Personal',
        component: () => import('../views/Personal.vue')
    }
]
export const routes = [
    {
        path: '/login',
        name: 'Login',
        component: () => import('../views/Login.vue')
    },
    {
        path: '/',
        name: 'Main',
        component: () => import('../views/Main.vue'),
        children: MainRoutes
    },
    {
        path: '/details/:pid',
        name: 'Details',
        component: () => import('../views/Details.vue')
    },
    {
        path: '/address',
        name: 'Address',
        component: () => import('../views/Address.vue')
    },
    {
        path: '/newAddress/:aid?',
        name: 'NewAddress',
        component: () => import('../views/NewAddress.vue')
    },
    {
        path: '/commit',
        name: 'Commit',
        component: () => import('../views/Commit.vue')
    },
    {
        path: '/order',
        name: 'Order',
        component: () => import('../views/Order.vue')
    },
    {
        path: '/colle',
        name: 'Colle',
        component: () => import('../views/Colle.vue')
    },
    {
        path: '/my',
        name: 'My',
        component: () => import('../views/My.vue')
    },
    {
        path: '/safe',
        name: 'Safe',
        component: () => import('../views/Safe.vue')
    },
    {
        path: '/search',
        name: 'Search',
        component: () => import('../views/Search.vue')
    },
    {
        path: '/retrieve',
        name: 'Retrieve',
        component: () => import('../views/Retrieve.vue')
    },
]